package com.usefullc.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usefullc.user.domain.AuthRes;
import com.usefullc.user.domain.Role;
import com.usefullc.user.param.RoleAuthResParam;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {

    List<AuthRes> findAuthResListByRoleId(@Param("roleId") Long roleId);

    int insertRoleAuthResBatch(@Param("param") RoleAuthResParam param);

    int deleteRoleAuthResByRoleId(@Param("roleId") Long roleId);
}
